Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(anta): Add support of CSV file export #672

Merged
merged 43 commits into from
Jul 17, 2024

Conversation

titom73
Copy link
Collaborator

@titom73 titom73 commented May 13, 2024

Description

Add option to save tests result in CSV format

Command example

# Example 1
anta nrfu -c anta/nrfu.yml csv --csv-output demo.csv

# Example 2
anta nrfu -c anta/nrfu.yml --device spine1 csv --csv-output demo.csv

image

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)

Requirements

@titom73 titom73 added framework-enhancement New feature or request Anta CLI All things around CLI labels May 13, 2024
@titom73 titom73 self-assigned this May 13, 2024
@mtache
Copy link
Collaborator

mtache commented May 14, 2024

What about anta nrfu csv ? :)

@titom73
Copy link
Collaborator Author

titom73 commented May 14, 2024

What about anta nrfu csv ? :)

It means would have no output which is a bit uncommon: running tests and not seing results.

This aproach assumes that you can chose how you want to display and just save results in a CSV file.

Copy link
Contributor

github-actions bot commented Jul 4, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

github-actions bot commented Jul 5, 2024

Conflicts have been resolved. A maintainer will review the pull request shortly.

Copy link

sonarcloud bot commented Jul 10, 2024

anta/reporter/csv_reporter.py Outdated Show resolved Hide resolved
anta/reporter/csv_reporter.py Outdated Show resolved Hide resolved
docs/cli/nrfu.md Outdated Show resolved Hide resolved
tests/units/reporter/test_csv.py Outdated Show resolved Hide resolved
@titom73 titom73 requested a review from gmuloc July 10, 2024 14:10
anta/cli/nrfu/commands.py Outdated Show resolved Hide resolved
anta/reporter/csv_reporter.py Outdated Show resolved Hide resolved
docs/cli/nrfu.md Outdated Show resolved Hide resolved
tests/units/reporter/test_csv.py Outdated Show resolved Hide resolved
@titom73 titom73 requested a review from gmuloc July 16, 2024 13:09
anta/cli/nrfu/utils.py Outdated Show resolved Hide resolved
anta/cli/nrfu/utils.py Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Jul 17, 2024

Copy link
Contributor

@carl-baillargeon carl-baillargeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gmuloc gmuloc merged commit 25ec15f into aristanetworks:main Jul 17, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Anta CLI All things around CLI framework-enhancement New feature or request rn: feat(anta)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants